#include <iostream>
#include <stdio.h>

using namespace std;

/*
	基本内置类型
*/

int main()
{
	bool bValue = true;
	cout << "bool( " << sizeof(bool) << "):" << bValue << endl;

	char chValue = 'A';
	cout << "char( " << sizeof(char) << "):" << chValue << endl;

	double dValue = 123.456;
	cout << "double( " << sizeof(double) << "):" << dValue << endl;
	float fValue = 123.456f;
	cout << "float( " << sizeof(float) << "):" << fValue << endl;

	int nValue = 123;
	cout << "int( " << sizeof(int) << "):" << nValue << endl;

	void *pValue = nullptr;
	cout << "void*( " << sizeof(void *) << "):" << pValue << endl;

	// typedef short int wchar_t;
	wchar_t wValue = L'A';
	cout << "wchar_t( " << sizeof(wchar_t) << "):" << wValue << endl;
	/*
		bool( 1):1
		char( 1):A
		double( 8):123.456
		float( 4):123.456
		int( 4):123
		void*( 8):0
		wchar_t( 2):65
	*/
}